package week08;
/*
 * 子类，继承父类Player
 */
public   class Computer extends Player {

	@Override
	//重写finger方法
		public int finger(){
			int f=(int)(Math.random()*10)%3+1;
			System.out.println(name+"出拳:"+f);
			return f;
		}

	
}
